<%-- 
    Document   : index
    Created on : Aug 23, 2013, 11:07:57 PM
    Author     : CANHNGUYEN
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <h1>Hello Guys!</h1>
        <form action="/BeerExpert/ChooseBeer"  method="post" >
            <select name="colorBeerList">
                <option value="Xanh">Xanh</option>
                <option value="Do">Do</option>
                <option value="Vang">Vang</option>
            </select>
            <input type="submit" value="ChooseBeer" name="chooseBeer" />
        </form>
        <jsp:useBean id="beer" scope="session" class="Bean.ListBeer" />
        <jsp:setProperty name="beer" property="beerName" value="<%= beer.getBeerName() + "Beer for canhnguyen"%>" />
        <h1><jsp:getProperty name="beer" property="beerName" /></h1>
        <% session.setAttribute("beerSession", beer); %>

        <jsp:include page="result.jsp" />

    </body>
</html>
